import 'package:flutter/material.dart';
import 'package:flutter_easyloading/flutter_easyloading.dart';
import 'package:pax_info_app/ui/pages/login_page.dart';
import 'package:intl/date_symbol_data_local.dart';
import 'package:pax_info_app/utils/uidata.dart';

void main() {
  initializeDateFormatting();
  WidgetsFlutterBinding.ensureInitialized();
  runApp(
    MaterialApp(
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
        primarySwatch: Colors.deepPurple,
        splashColor: UIData.primaryColor,
        textTheme: const TextTheme(
          // headline1: TextStyle(fontSize: 72.0, fontWeight: FontWeight.bold),
          // headline6: TextStyle(fontSize: 36.0, fontStyle: FontStyle.italic),
          bodyText2: TextStyle(fontSize: 14.0, fontFamily: 'Hind', color: UIData.textNormal),
        ),
      ),
      home: LoginPage(),
      builder: EasyLoading.init(),
    )
  );
}